import request from '@/router/axios';
// 分页
export const getList = (current, size, params) => {
    return request({
        url: '/api/rb-oem/oem/oemWithdrawal/oem_withdrawal/page',
        method: 'get',
        params: {
            ...params,
            current,
            size
        }
    })
}

/*  导出 */
export const getExport = (params) => {
  return request({
    headers: {
      "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
    },
    responseType: 'blob',
    url: '/api/rb-oem/oem/oemWithdrawal/oem_withdrawal/export',
    method: 'get',
    params: {
      ...params,
    }
  })
}
// 统计
export const getListCount = (params) => {
  return request({
    url: '/api/rb-oem/oem/oemWithdrawal/oem_withdrawal/statistics',
    method: 'get',
    params: {
      ...params
    }
  })
}

export const getQueryPlatformList = (params) => {
  return request({
    url: '/api/rb-oem/oem/oemWithdrawal/oem_withdrawal/queryPlatformList',
    method: 'get',
    params: {
      ...params
    }
  })
}

export const changeForwardType = (row) => {
  return request({
    url: '/api/rb-oem/oem/oemWithdrawal/oem_withdrawal/changeForwardType',
    method: 'post',
    data: row
  })
}